/**
 *  字符串类型
 */

void main() {
  // 1.字符串类型定义的几种方法
  var str1 = 'this is st1';
  var str2 = "this is st2";
  print(str1);
  print(str2);

  String str3 = 'this is st3';
  String str4 = "this is st4";
  print(str3);
  print(str4);

 //三个引号 保留格式
  String str5 = '''this is str5
    你好dart
    你好flutter
  ''';
  String str6 = """this is str6
  你好dart
  你好flutter
  """;
  print(str5);
  print(str6);

  //2.字符串的拼接,类似于js里的模板字符串${exp}
  String str7 = '你好';
  String str8 = "Dart";
  print("$str7 $str8");

}